package com.weibo.hibernate;
// create table personinfo (regName varchar(255) primary key,userName varchar(255) not null,password varchar(255) not null,gender bool not null,email varchar(255) not null,realName varchar(255),province varchar(255),city varchar(255),BirYear int, BirMonth int,BirDay int,QQ varchar(255),MSN varchar(255),statement varchar(255))


public class PersonInfo {
	//注册信息
	private String regName;
	private String userName;
	private String password;
	
	//just test svn
	
	//必要信息
	private boolean gender;
	private String email;
	//不必要信息
	private String realName;
	private String province;
	private String city;
	private int BirYear;
	private int BirMonth;
	private int BirDay;
	private String QQ;
	private String MSN;
	private String statement;//个人签名
	public String getRegName() {
		return regName;
	}
	public void setRegName(String regName) {
		this.regName = regName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public boolean isGender() {
		return gender;
	}
	public void setGender(boolean gender) {
		this.gender = gender;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public int getBirYear() {
		return BirYear;
	}
	public void setBirYear(int birYear) {
		BirYear = birYear;
	}
	public int getBirMonth() {
		return BirMonth;
	}
	public void setBirMonth(int birMonth) {
		BirMonth = birMonth;
	}
	public int getBirDay() {
		return BirDay;
	}
	public void setBirDay(int birDay) {
		BirDay = birDay;
	}
	public String getQQ() {
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}
	public String getMSN() {
		return MSN;
	}
	public void setMSN(String mSN) {
		MSN = mSN;
	}
	public String getStatement() {
		return statement;
	}
	public void setStatement(String statement) {
		this.statement = statement;
	}

	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof PersonInfo)) return false;
		if(((PersonInfo)obj).getRegName().equals(this.regName)) return true;
		return false;
	}
	@Override
	public int hashCode() {
		return 0;
	}
	
}